package com.smart.lx.designPrinciples.lsp;

/**
 * 功能描述: <br>
 * 〈正方形〉
 *
 * @since: 1.0.0
 * @Author:abc
 * @Date: 2019/4/6
 */
public class Square implements Quadrangle {

    private long length;


   public long getLength() {

        return length;
    }
 @Override
    public long getHeight() {
        return getLength();
    }


    @Override
    public long getWidth() {
        return getLength();
    }

    public void setLength(long length) {
        this.length=length;
    }

    public void setHeight(long height) {
        setLength(height);
    }

    public void setWidth(long width) {
        setLength(width);
    }



}
